CompositionRegistry

StockSharp.Diagram

デフォルト@ICompositionRegistry@実装。

実装: ICompositionRegistry

コンストラクター

CompositionRegistry
public CompositionRegistry(Func<ICompositionModelBehavior<TNode, TLink>> createBehavior)
compositionRegistry = CompositionRegistry(createBehavior)

CompositionRegistry の新規インスタンスを初期化します。

createBehavior
担当: 佐藤 宏

プロパティ

DiagramElements
public INotifyList<DiagramElement> DiagramElements { get; }
value = compositionRegistry.DiagramElements

要素のリスト。

メソッド

CreateComposition
public CompositionDiagramElement CreateComposition()
result = compositionRegistry.CreateComposition()

CompositionDiagramElement@ インスタンスを作成します。

戻り値: 担当: 佐藤 宏

DeserializeAsync
public ValueTask<bool> DeserializeAsync(CompositionDiagramElement element, SettingsStorage container, Func<SecureString> getPassword, CancellationToken cancellationToken)
result = compositionRegistry.DeserializeAsync(element, container, getPassword, cancellationToken)

To deserialize the composite element.

element
CompositionDiagramElement
storage
Settings storage.
getPassword
Get password handler.
cancellationToken
CancellationToken

戻り値: Is encryption used.

LoadNotLoadedElementsAsync
public ValueTask LoadNotLoadedElementsAsync(CompositionDiagramElement composition, CancellationToken cancellationToken)
result = compositionRegistry.LoadNotLoadedElementsAsync(composition, cancellationToken)

Load the elements of the composition that waited for their type. A composition deserialized before a type was added to DiagramElements keeps an empty node in place of each element of that type; the node gets its element here, in the nested compositions as well. An element that cannot be loaded keeps waiting, and the error is thrown.

composition
CompositionDiagramElement
cancellationToken
CancellationToken

戻り値: ValueTask

SerializeAsync
public ValueTask SerializeAsync(CompositionDiagramElement element, SettingsStorage container, bool includeCoordinates, SecureString password, CancellationToken cancellationToken)
result = compositionRegistry.SerializeAsync(element, container, includeCoordinates, password, cancellationToken)

To serialize the composite element.

element
CompositionDiagramElement
storage
Settings storage.
includeCoordinates
Include coordinates.
password
Password.
cancellationToken
CancellationToken

戻り値: ValueTask